package com.deng.eventflow.core;

import java.util.HashMap;
import java.util.Map;

public class Context extends HashMap<String, Object> {
    /**
     * Dummy UID
     */
    private static final long serialVersionUID = 1L;

    /**
     * Creates a new empty context
     */
    public Context()
    {
        super();
    }

    public Context(Context c) {
        super();
        if (c != null)
        {
            putAll(c);
        }
    }

    @Override
    public synchronized void putAll(Map<? extends String, ? extends Object> o) {
        super.putAll(o);
    }

    @Override
    public synchronized Object get(Object key) {
        return super.get(key);
    }

    @Override
    public synchronized Object put(String key, Object value) {
        return super.put(key, value);
    }

    @Override
    public synchronized boolean containsKey(Object key) {
        return super.containsKey(key);
    }

}
